package com.heima.behavior.service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.heima.model.behavior.dtos.BhLikesBehaviorDto;
import com.heima.model.behavior.pojos.BhBehavior;
import com.heima.model.common.dtos.ResponseResult;
import com.heima.model.behavior.dtos.ReadCountDto;
import com.heima.model.behavior.dtos.UnLikesBehaviorDto;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.Map;

/**
 * @author yhtdsb
 * @date 2022/1/15 8:48
 */
public interface UserBehaviorService extends IService<BhBehavior> {
    public ResponseResult like(BhLikesBehaviorDto dto);

    public ResponseResult unLike(BhLikesBehaviorDto dto);

    public ResponseResult findIsLike(Map map);

    /**
     * 取消点赞
     * @param dto
     * @return
     */
    public ResponseResult unLikes(@RequestBody UnLikesBehaviorDto dto);

    /***
     * 查询是否点赞
     * @param map
     * @return
     */
    public ResponseResult findIsUnLike(Map map);

    /**
     * 用户阅读数量
     * @param dto
     * @return
     */
    public ResponseResult readCount(ReadCountDto dto);

}
